<template>
    <div class="home_special_box">
        <div class="homeBulletin_header">
            <div>
                <span class="homeBulletin_header_title">专题栏目</span>
                <span>包含众多类目</span>
            </div>
            <div class="homeBulletin_more">
                <router-link to="/">全部专题</router-link>
            </div>
        </div>
        <ul>
            <li v-for="(item,index) in special" :key="index">
                <span class="home_special_logotype">{{item.msg}}</span>
                <img :src="item.url" alt="" title="item.msg">
            </li>
        </ul>
    </div>
</template>

<!--专题栏目-->
<script setup>
import {ref} from "vue";

const special = ref([
    {url:"/img/home/ghiukhk.jpg",msg:"猜你喜欢"},
    {url:"/img/home/ghiukhk.jpg",msg:"你想要的"},
    {url:"/img/home/ghiukhk.jpg",msg:"你喜欢的"},
    {url:"/img/home/ghiukhk.jpg",msg:"你最爱的"},
])

</script>

<style scoped>
.home_special_box {
    width: 100%;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(96, 97, 98, 0.14);
    font-size: 14px;
    background: white;

}

.homeBulletin_header {
    display: flex;
    padding: 5px 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(103, 98, 98, 0.7);
    margin-bottom: 15px;
}

.homeBulletin_more {
    display: flex;
    justify-content: center;
    align-items: center;
}

img{
    width: 100%;
    transition: all .2s;
    z-index: -1;
}

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4,24%);
    justify-content: space-around;
    align-items: center;
}

li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    cursor: pointer;
    overflow: hidden;
}
li:hover img{
    transform: scale(1.1);
}
.home_special_logotype {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(96, 97, 98, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: bolder;
    color: white;
    transform: translateY(-50%) translateX(-50%);
}

.homeBulletin_header_title {
    font-size: 17px;
    font-weight: bolder;
    margin-right: 10px;
}

</style>